package com.example.video.video_server.controller;

import com.example.video.video_server.entity.VideoResource;
import com.example.video.video_server.service.IVideoResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 视频播放
 * <p/>
 *
 * @author : yj
 */
@RestController("play")
public class VideoPlayController {

    @Autowired
    private IVideoResourceService iVideoResourceService;

    @RequestMapping("admin")
    public void adminPlay(HttpServletResponse response, Integer resourceId){
        VideoResource byId = iVideoResourceService.getById(resourceId);

    }

}
